/*
 *
 *      Copyright (c) 2018-2025, waterx All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the pig4cloud.com developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: waterx
 *
 */

package com.example.tenant.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;



import com.example.tenant.Converter.CustomStringConverter;
import com.example.tenant.Converter.LongStringConverter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;

/**
 * <p>
 * 部门管理
 * </p>
 *
 * @author waterx
 * @since 2018-01-22
 */
@Data
 @ColumnWidth(10)
@EqualsAndHashCode(callSuper = true)
public class SysDept extends Model<SysDept> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "dept_id", type = IdType.ASSIGN_ID)
	@ExcelProperty("dept_id")
	private String deptId;

	/**
	 * 部门名称
	 */
	@ExcelProperty("name")
	private String name;

	/**
	 * 部门编码
	 */
	@ExcelProperty("dept_code")
	private String deptCode;

	/**
	 * 排序
	 */
	@ExcelProperty("sort_order")
	private Integer sortOrder;

	/**
	 * 创建人
	 */
	@ExcelProperty(value = "create_by", converter = CustomStringConverter.class )
	@TableField(fill = FieldFill.INSERT)
	private String createBy;

	/**
	 * 创建时间
	 */
	@ExcelProperty("create_time")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@ExcelProperty(value = "update_by", converter = CustomStringConverter.class )
	private String updateBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@ExcelProperty("update_time")
	private Date updateTime;

	/**
	 * 删除标记
	 */
	 
	@TableField(fill = FieldFill.INSERT)
	@ExcelProperty("del_flag")
	private String delFlag;

	/**
	 * 租户id
	 */
	@ExcelProperty(value = "tenant_id", converter = LongStringConverter.class)
	private Long tenantId;

	/**
	 * 父级部门id
	 */
	@ExcelProperty("parent_id")
	private String parentId;

	/**
	 * 部门类型 1、单位9、部门
	 */
	@ExcelProperty("dept_type")
	private String deptType;

	/**
	 * 部门性质 行政-2、事业--3、企业-1
	 */
	@ExcelProperty("dept_nature")
	private String deptNature;

	/**
	 * 机构种类
	 */
	@ExcelProperty("dept_kind")
	private String deptKind;

	/**
	 * 机构等级
	 */
	@ExcelProperty("dept_level")
	private String deptLevel;

	/**
	 * 行政区域标识
	 */
	@ExcelProperty("area_id")
	private String areaId;

	/**
	 * 机构主管人员
	 */
	@ExcelProperty("charge_name")
	private String chargeName;

	/**
	 * 机构状态
	 */
	@ExcelProperty("dept_status")
	private String deptStatus;

	/**
	 * 单位简称
	 */
	@ExcelProperty("short_name")
	private String shortName;

	/**
	 * 是否实际节点 说明该节点是实际存在的，还是虚拟出来的节点
	 */
	@ExcelProperty("is_true")
	private String isTrue;

	/**
	 * 层级编码
	 */
	@ExcelProperty("level_code")
	private String levelCode;

	/**
	 * 岗位编码
	 */
	@ExcelProperty("post_code")
	private String postCode;

	/**
	 * 来源，0、表示来源到HR系统-1、表示手工录入如果是外部系统录入，则记录外部系统的编码
	 */
	@ExcelProperty("source")
	private String source;

	/**
	 * 单位标识
	 */
	@ExcelProperty("org_id")
	private String orgId;

	/**
	 * 业务上级单位标识
	 */
	@ExcelProperty("busi_parent_id")
	private String busiParentId;

	/**
	 * 备注
	 */
	@ExcelProperty("remark")
	private String remark;

}
